#
include "flow.util";#
include "flow.util.synchronous";

var doc = getCurrentDocument();
var docId = doc.getId();


synchronous(docId);
setInTime();


/**
 * 更新进入工作量评估的时间戳
 */
function setInTime() {
    var sql = "update tlk_setuo_carryout set begin_workload_point = '" + getCurDate("yyyy-MM-dd HH:mm:ss") + "', inform_state='' where id = '" + getCurrentDocument().getId() + "'";
    println("更新SQL：" + sql);
    updateByDSName(datasource, sql);
}